package com.WISSC.mapper;

import com.WISSC.bean.Authorization;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 授权机构信息表 Mapper 接口
 * </p>
 *
 * @author 张凯
 * @since 2019-05-06
 */
public interface AuthorizationMapper extends BaseMapper<Authorization> {
    /**
     *
     * @param map
     * @return 查询 + 分页
     */
    List<Authorization> selectAuthorization(@Param("map") Map map);
    Integer countAuthorization(@Param("map") Map map);

    //授权信息机构查询----通过单位名称查询
    List<Authorization> selectAuthorizationByUnitName(@Param("unitName") String unitName);
    /**
     *
     * @param map
     * @return 机构登陆
     */
    List<Authorization> login(@Param("map")Map map);
    Authorization getTeamCity(@Param("id") Long id);

    Authorization countPerson();
}
